//
//  MYMyCommentListReplyCell.m
//  MuYing
//
//  Created by tbb on 2019/8/9.
//  Copyright © 2019 TBB. All rights reserved.
//

#import "MYMyCommentListReplyCell.h"
#import "YQPCommentListModel.h"
@implementation MYMyCommentListReplyCell
-(void)setCommentModel:(YQPCommentModel *)commentModel {
    _commentModel = commentModel;
    
    NSString *yjRegisterProtocolStr = [NSString stringWithFormat:@"@ %@",commentModel.parentCommentUsername];
    NSString *text = [yjRegisterProtocolStr stringByAppendingString:commentModel.parentContent];
    NSMutableAttributedString *addTagStr = [[NSMutableAttributedString alloc] initWithString:text];
    
    NSRange range = [text rangeOfString:yjRegisterProtocolStr];
    [addTagStr setColor:HexColor(0x79C4C7) range:range];
    self.replyLb.attributedText = [addTagStr copy];
    
}
- (void)awakeFromNib {
    [super awakeFromNib];
    self.bgView.layer.cornerRadius = 4;
    self.bgView.clipsToBounds = true;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
